package com.freecloud.whispered.auth.service;

import com.freecloud.framework.request.R;
import com.freecloud.framework.service.InterfaceBaseService;
import com.freecloud.whispered.auth.entity.SysUserTokenEntity;
import org.springframework.stereotype.Service;

/**
 * @Author: maomao
 * @Date: 2019-06-20 10:01
 */
@Service
public interface SysUserTokenService extends InterfaceBaseService<SysUserTokenEntity,Long> {

    /**
     * 生成token
     * @param userId  用户ID
     */
    R createToken(long userId);

    /**
     * 退出，修改token值
     * @param userId  用户ID
     */
    void logout(long userId);
}
